#include <assert.h>
#include "../access.h"

#ifdef __cplusplus
extern "C"
#endif
int read_int(unsigned char* address) {
    int i = *(int*)address;
    return i;
}

#ifdef __cplusplus
extern "C"
#endif
void write_int(unsigned char* address,size_t max_lenght,int value) {
    assert(max_lenght>=sizeof(value));
    *(int*)address = value;
}
